package com.ojoin.trade.common_core.web.service;

import com.ojoin.trade.common.exception.BusinessException;
import com.ojoin.trade.common.web.service.BaseService;
import com.ojoin.trade.common_core.web.domain.TbMerchantuserFinaccount;
import com.ojoin.trade.common_core.web.domain.TbMerchantuserFinaccountVo;

import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 15-10-26
 * Time: 下午5:19
 * To change this template use File | Settings | File Templates.
 */
public interface TbMerchantuserFinaccountService extends BaseService<TbMerchantuserFinaccount> {
    /**
     * 新增一个用户的对应任务类型的金融户
     * @param accountvo
     * @throws BusinessException
     */
    public void insertTbMerchantuserFinaccount(TbMerchantuserFinaccount accountvo)throws BusinessException;

    /**
     *根据用户的join主键，业务类型查询商户的金融户
     * @param idOfTbMerchantUser
     * @param businessType
     * @return
     * @throws BusinessException
     */
    public List<TbMerchantuserFinaccount> queryFinaccountByJoinid(int idOfTbMerchantUser,int businessType)throws BusinessException;

    /**
     * 根据业务类型查询金融账户
     * @param businessType
     * @return
     * @throws BusinessException
     */
    public List<TbMerchantuserFinaccountVo> queryFinaccountByType(int businessType,String accountType) throws BusinessException;

    /**根据商户业务类型账号类型查询卡号
     * * @param idOfTbMerchantUser
     * @param businessType
     * @param accountType
     * @return
     * @throws BusinessException
     */
    public TbMerchantuserFinaccount queryFinaccount(Integer idOfTbMerchantUser, Integer businessType, String accountType)throws BusinessException;

    /**根据账户类型查询用户的结算账户
     ** @param idOfTbMerchantUser
     * @param acccountType
     * @return
     * @throws BusinessException
     */
    public List<TbMerchantuserFinaccount> queryFinaccountByJoinidAndAcctype(Integer idOfTbMerchantUser, String acccountType) throws BusinessException;

}
